Skip to content

ufat: let SIGPIPE end the command line tool - #4

Merged
brauner merged 1 commit into
mainfrom
cli-sigpipe
Nov 13, 2026
Merged

brauner merged 1 commit into
mainfrom
cli-sigpipe

Conversation

@brauner

@brauner brauner commented Nov 12, 2026

Copy link
Copy Markdown
Member

Rust starts programs with SIGPIPE ignored. So when the reader of ufat's
output goes away, as in ufat describe IMAGE | head -1, the next write
fails with EPIPE and print!() panics. Restore the default disposition
in the command line tool, so it ends quietly like other tools do. The
service keeps ignoring SIGPIPE since it writes its replies to the
socket with plain writes.

Rust starts programs with SIGPIPE ignored. So when the reader of ufat's
output goes away, as in `ufat describe IMAGE | head -1`, the next write
fails with EPIPE and print!() panics. Restore the default disposition
in the command line tool, so it ends quietly like other tools do. The
service keeps ignoring SIGPIPE since it writes its replies to the
socket with plain writes.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
@brauner
brauner merged commit e7efbd6 into main Nov 13, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant